/*
 * PriceComparisonAboutBox.java
 */

package pricecomparison;

import org.jdesktop.application.Action;

public class PriceComparisonOptionsBox extends javax.swing.JDialog {

    public PriceComparisonOptionsBox(java.awt.Frame parent) {
        super(parent);
        initComponents();
    }

    @Action public void closeOptionsBox() {
        dispose();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        javax.swing.JLabel appTitleLabel = new javax.swing.JLabel();
        javax.swing.JLabel imageLabel = new javax.swing.JLabel();
        pureland = new javax.swing.JCheckBox();
        jSeparator1 = new javax.swing.JSeparator();
        projectorQuest = new javax.swing.JCheckBox();
        discountMerchant = new javax.swing.JCheckBox();
        apex = new javax.swing.JCheckBox();
        applyButton = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(pricecomparison.PriceComparisonApp.class).getContext().getResourceMap(PriceComparisonOptionsBox.class);
        setTitle(resourceMap.getString("title")); // NOI18N
        setModal(true);
        setName("aboutBox"); // NOI18N
        setResizable(false);

        appTitleLabel.setFont(appTitleLabel.getFont().deriveFont(appTitleLabel.getFont().getStyle() | java.awt.Font.BOLD, appTitleLabel.getFont().getSize()+4));
        appTitleLabel.setText(resourceMap.getString("Application.title")); // NOI18N
        appTitleLabel.setName("appTitleLabel"); // NOI18N

        imageLabel.setIcon(resourceMap.getIcon("imageLabel.icon")); // NOI18N
        imageLabel.setName("imageLabel"); // NOI18N

        pureland.setSelected(true);
        pureland.setText(resourceMap.getString("pureland.text")); // NOI18N
        pureland.setName("pureland"); // NOI18N

        jSeparator1.setName("jSeparator1"); // NOI18N

        projectorQuest.setSelected(true);
        projectorQuest.setText(resourceMap.getString("projectorQuest.text")); // NOI18N
        projectorQuest.setName("projectorQuest"); // NOI18N

        discountMerchant.setSelected(true);
        discountMerchant.setText(resourceMap.getString("discountMerchant.text")); // NOI18N
        discountMerchant.setName("discountMerchant"); // NOI18N

        apex.setSelected(true);
        apex.setText(resourceMap.getString("apex.text")); // NOI18N
        apex.setName("apex"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(pricecomparison.PriceComparisonApp.class).getContext().getActionMap(PriceComparisonOptionsBox.class, this);
        applyButton.setAction(actionMap.get("closeOptionsBox")); // NOI18N
        applyButton.setText(resourceMap.getString("applyButton.text")); // NOI18N
        applyButton.setName("applyButton"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(imageLabel)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(appTitleLabel)
                        .addGap(222, 222, 222))
                    .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(projectorQuest)
                            .addComponent(pureland))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(discountMerchant)
                            .addComponent(apex)))
                    .addComponent(applyButton))
                .addContainerGap(12, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(imageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 196, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(appTitleLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(pureland)
                    .addComponent(discountMerchant))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(projectorQuest)
                    .addComponent(apex))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 71, Short.MAX_VALUE)
                .addComponent(applyButton)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JCheckBox apex;
    private javax.swing.JButton applyButton;
    public javax.swing.JCheckBox discountMerchant;
    private javax.swing.JSeparator jSeparator1;
    public javax.swing.JCheckBox projectorQuest;
    public javax.swing.JCheckBox pureland;
    // End of variables declaration//GEN-END:variables
}
